package tjx.Action;

import com.opensymphony.xwork2.Action;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;

public class TextAction extends ActionSupport{
//    private String username;
//    private String password;

        @Override
        public String execute() throws Exception {
            System.out.println("正在执行LoginAction！");
            ActionContext actionContext=ActionContext.getContext();
            // if ("root".equals(getUsername()) && "qqq".equals(getPassword())){
            return "success";
            // }
            //return ERROR;
        }
//    public String getUsername() {
//        return username;
//    }
//    public String getPassword() {
//        return password;
//    }
    }
